home *** CD-ROM | disk | FTP | other *** search
/ Level 2003 February / Level_02_2003.iso / Extra / Emulator / Commodore 64.exe / Commodore 64 / pet / os2.vkm < prev    next >
Encoding:
Text File  |  2003-01-16  |  7.6 KB  |  150 lines

  1. //
  2. //  OS/2 keyboard mapping file
  3. //
  4. //       The default keyboard file 'default.vkm' is read always.
  5. //       Every other keyboard file in read as a patch
  6. //
  7. //  comments are starting with /
  8. //
  9. // This is a scancode mapping file
  10.  
  11. !KSCODE
  12. !CLEAR
  13.  
  14. //  the position of th left and right shift key on the cbm keyboard:
  15. //     !LSHIFT row col
  16. //     !RSHIFT row col
  17. //  e.g.
  18.  
  19. !LSHIFT 6 0
  20. !RSHIFT 6 6
  21.  
  22. // the keyboard is mapped with the keyboard scancodes:
  23. //      Xcode: row col vshift
  24. //
  25. //      X       # (shifted and unshifted), S (shifted), U (unshifted)
  26. //      code    keyboard scancode
  27. //      row     cbm keyboard row
  28. //      col     cbm keyboard column
  29. //      vshift  should the cbm key pressed?
  30. //               0 key is shifted if shift is pressed
  31. //               1 left shifted        
  32. //               2 right shifted        
  33. //               3 unshifted     
  34. //  e.g.
  35. //         S44: 1, 7, 2 
  36. //  means
  37. //         If the key with the scancode 44 is pressed together with shift
  38. //         the cbm emulator will receive the pressing of a key at
  39. //         row 1, column 7 together with the right virtual shift key (defined by !RSHIFT)
  40. //
  41.  
  42. #00:   -1, -1, 0          /*           (no key)           */
  43. #01:   2, 0, 0            /*          ESC -> ESC          */
  44. #02:   1, 0, 0            /*            1 -> 1            */
  45. #03:   0, 0, 0            /*            2 -> 2            */
  46. #04:   9, 1, 0            /*            3 -> 3            */
  47. #05:   1, 1, 0            /*            4 -> 4            */
  48. #06:   0, 1, 0            /*            5 -> 5            */
  49. #07:   9, 2, 0            /*            6 -> 6            */
  50. #08:   1, 2, 0            /*            7 -> 7            */
  51. #09:   0, 2, 0            /*            8 -> 8            */
  52. #10:   9, 3, 0            /*            9 -> 9            */
  53. #11:   1, 3, 0            /*            0 -> 0            */
  54. #12:   9, 5, 0            /*            - -> :            */
  55. #13:   0, 3, 0            /*            = -> -            */
  56. #14:   4, 7, 0            /*    Backspace -> Del          */
  57. #15:   4, 0, 0            /*          Tab -> Tab          */
  58. #16:   5, 0, 0            /*            Q -> Q            */
  59. #17:   4, 1, 0            /*            W -> W            */
  60. #18:   5, 1, 0            /*            E -> E            */
  61. #19:   4, 2, 0            /*            R -> R            */
  62. #20:   5, 2, 0            /*            T -> T            */
  63. #21:   4, 3, 0            /*            Y -> Y            */
  64. #22:   5, 3, 0            /*            U -> U            */
  65. #23:   4, 5, 0            /*            I -> I            */
  66. #24:   5, 5, 0            /*            O -> O            */
  67. #25:   4, 6, 0            /*            P -> P            */
  68. #26:   5, 6, 0            /*            [ -> [            */
  69. #27:   2, 4, 0            /*            ] -> ]            */
  70. #28:   3, 4, 0            /*       Return -> Return       */
  71. #29:   8, 0, 0            /*    Left Ctrl -> RVS          */
  72. #30:   3, 0, 0            /*            A -> A            */
  73. #31:   2, 1, 0            /*            S -> S            */
  74. #32:   3, 1, 0            /*            D -> D            */
  75. #33:   2, 2, 0            /*            F -> F            */
  76. #34:   3, 2, 0            /*            G -> G            */
  77. #35:   2, 3, 0            /*            H -> H            */
  78. #36:   3, 3, 0            /*            J -> J            */
  79. #37:   2, 5, 0            /*            K -> K            */
  80. #38:   3, 5, 0            /*            L -> L            */
  81. #39:   2, 6, 0            /*            ; -> ;            */
  82. #40:   3, 6, 0            /*            ' -> @            */
  83. #41:   9, 0, 0            /*            ` -> Left Arrow   */
  84. #42:   6, 0, 0            /*   Left Shift -> Left Shift   */
  85. #43:   4, 4, 0            /*            \ -> \            */
  86. #44:   7, 0, 0            /*            Z -> Z            */
  87. #45:   8, 1, 0            /*            X -> X            */
  88. #46:   6, 1, 0            /*            C -> C            */
  89. #47:   7, 1, 0            /*            V -> V            */
  90. #48:   6, 2, 0            /*            B -> B            */
  91. #49:   7, 2, 0            /*            N -> N            */
  92. #50:   8, 3, 0            /*            M -> M            */
  93. #51:   7, 3, 0            /*            , -> ,            */
  94. #52:   6, 3, 0            /*            . -> .            */
  95. #53:   8, 6, 0            /*            / -> /            */
  96. #54:   6, 6, 0            /*  Right Shift -> Right Shift  */
  97. #55:   -1, -1, 0          /*       Grey * -> (no key)     */
  98. #56:   -1, -1, 0          /*     Left Alt -> (no key)     */
  99. #57:   8, 2, 0            /*        Space -> Space        */
  100. #58:   2, 0, 0            /*    Caps Lock -> ESC          */
  101. #69:   -1, -1, 0          /*           F1 -> (no key)     */
  102. #70:   -1, -1, 0          /*           F2 -> (no key)     */
  103. #71:   -1, -1, 0          /*           F3 -> (no key)     */
  104. #72:   -1, -1, 0          /*           F4 -> (no key)     */
  105. #73:   -1, -1, 0          /*           F5 -> (no key)     */
  106. #74:   -1, -1, 0          /*           F6 -> (no key)     */
  107. #75:   -1, -1, 0          /*           F7 -> (no key)     */
  108. #76:   -1, -1, 0          /*           F8 -> (no key)     */
  109. #78:   -1, -1, 0          /*           F9 -> (no key)     */
  110. #79:   -1, -1, 0          /*          F10 -> (no key)     */
  111. #80:   -1, -1, 0          /*     Num Lock -> (no key)     */
  112. #81:   -1, -1, 0          /*  Scroll Lock -> (no key)     */
  113. #82:   1, 4, 0            /*     Numpad 7 -> Numpad 7     */
  114. #83:   0, 4, 0            /*     Numpad 8 -> Numpad 8     */
  115. #84:   1, 7, 0            /*     Numpad 9 -> Numpad 9     */
  116. #85:   -1, -1, 0          /*     Numpad - -> (no key)     */
  117. #86:   5, 7, 0            /*     Numpad 4 -> Numpad 4     */
  118. #87:   2, 7, 0            /*     Numpad 5 -> Numpad 5     */
  119. #88:   3, 7, 0            /*     Numpad 6 -> Numpad 6     */
  120. #89:   -1, -1, 0          /*     Numpad + -> (no key)     */
  121. #90:   8, 7, 0            /*     Numpad 1 -> Numpad 1     */
  122. #91:   7, 7, 0            /*     Numpad 2 -> Numpad 2     */
  123. #92:   6, 7, 0            /*     Numpad 3 -> Numpad 3     */
  124. #93:   7, 4, 0            /*     Numpad 0 -> Numpad 0     */
  125. #94:   6, 4, 0            /*     Numpad . -> .            */
  126. #95:   -1, -1, 0          /*       SysReq -> (no key)     */
  127. #96:   -1, -1, 0          /*           85 -> (no key)     */
  128. #97:   -1, -1, 0          /*           86 -> (no key)     */
  129. #98:   -1, -1, 0          /*          F11 -> (no key)     */
  130. #99:   -1, -1, 0          /*          F12 -> (no key)     */
  131. #100:  -1, -1, 0          /* Numpad Enter -> (no key)     */
  132. #101:  7, 6, 0            /*   Right Ctrl -> RPT          */
  133. #102:  -1, -1, 0          /*        Pause -> (no key)     */
  134. #103:  -1, -1, 0          /*       PrtScr -> (no key)     */
  135. #104:  -1, -1, 0          /*     Numpad / -> (no key)     */
  136. #105:  -1, -1, 0          /*    Right Alt -> (no key)     */
  137. #106:  -1, -1, 0          /*        Break -> (no key)     */
  138. #107:  8, 4, 0            /*         Home -> CLR/HOME     */
  139. #108:  5, 4, 1            /*           Up -> CRSR UP      */
  140. #109:  -1, -1, 0          /*         PgUp -> (no key)     */
  141. #110:  0, 5, 1            /*         Left -> CRSR LEFT    */
  142. #111:  0, 5, 0            /*        Right -> CRSR RIGHT   */
  143. #112:  -1, -1, 0          /*          End -> (no key)     */
  144. #113:  5, 4, 0            /*         Down -> CRSR DOWN    */
  145. #114:  -1, -1, 0          /*       PgDown -> (no key)     */
  146. #115:  9, 4, 0            /*          Ins -> STOP         */
  147. #116:  1, 5, 0            /*          Del -> Up arrow     */
  148. #117:  -1, -1, 0          /*   Left Win95 -> (no key)     */
  149. #118:  -1, -1, 0          /*  Right Win95 -> (no key)     */
  150.